<?php
use tpfcore\Core;
?>
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<!-- Set render engine for 360 browser -->
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<!-- HTML5 shim for IE8 support of HTML5 elements --> <!--[if lt IE 9]>
	<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
	<![endif]-->
	<link href="{$admin_assets_path}/css/theme.min.css" rel="stylesheet">
	<link href="{$admin_assets_path}/css/simplebootadmin.css" rel="stylesheet">
	<link href="{$admin_assets_path}/css/default.css" rel="stylesheet" />
	<link href="{$admin_assets_path}/css/font-awesome.min.css" rel="stylesheet" type="text/css">
	<style>
		.length_3{width: 180px;} form .input-order{margin-bottom: 0px;padding:3px;width:40px;}
		.table-actions{margin-top: 5px; margin-bottom: 5px;padding:0px;} .table-list{margin-bottom:
		0px;}
		.selector{width: 120px;}
	</style>
	<!--[if IE 7]>
		<link rel="stylesheet" href="{$admin_assets_path}/css/font-awesome-ie7.min.css">
	<![endif]-->
	<script type="text/javascript">
		//全局变量
		var GV = {
			WEB_ROOT:"",
			DIMAUB: "/",
			JS_ROOT: "/theme/backend/assets/js/",
			TOKEN: ""
		};
	</script>
	<!-- Le javascript==================================================-
	-> <!-- Placed at the end of the document so the pages load faster -->
	<script src="{$admin_assets_path}/js/jquery.js"></script>
	<script src="{$admin_assets_path}/js/wind.js"></script>
	<script src="{$admin_assets_path}/js/bootstrap.min.js"></script>
	<script>
		$(function(){
			$("[data-toggle='tooltip']").tooltip();
		});
	</script>
</head>
<body>
<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:url('cms/Message/index')}">留言管理</a></li>
		</ul>
		<form class="well form-search" method="get" action="">
			<input type="hidden" name="act" value="search" />
			时间：
			<input type="text" name="start_time" class="js-datetime date" value="{$Request.get.start_time|default=''}" style="width: 120px;" autocomplete="off">-
			<input type="text" class="js-datetime date" name="end_time" value="{$Request.get.end_time|default=''}" style="width: 120px;" autocomplete="off"> &nbsp; &nbsp;
			关键字： 
			<input type="text" name="keyword" style="width: 200px;" value="{$Request.get.keyword|default=''}" placeholder="请输入关键字...">
			<input type="submit" class="btn btn-primary" value="搜索">
			<a class="btn btn-danger" href="{:url('cms/Message/index')}">清空</a>
		</form>
		
		<form method="post" class="js-ajax-form" action="term/listorders">
			<table class="table table-hover table-bordered table-list">
				<thead>
					<tr>
						<th width="15">
							<label>
								<input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x">
							</label>
						</th>
						<th width="10">ID</th>
						<th>姓名</th>
						<th width="60">邮箱</th>
						<th>内容</th>
						<th>留言时间</th>
						<th width="100">操作</th>
					</tr>
				</thead>
				<tbody>
					{empty name="list"}
					<td colspan="6">没有数据</td>
					{else/}
					{foreach name="list" item="vo"}
					<tr>
						<td>
							<input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="id[]" value="{$vo.id}" title="ID:{$vo.id}">
						</td>
						<td>{$vo.id}</td>
						<td>{$vo.name}</td>
						<td>{$vo.email}</td>
						<td>{$vo.message}</td>
						<td>{$vo.datetime|date="Y-m-d H:i:s",###}</td>
						<td>
							<a href="{:url('cms/Message/del',['id'=>$vo['id']])}" class="js-ajax-delete" data-msg="删除单页不会删除已生成的html">删除</a>
						</td>
					</tr>
					{/foreach}
					{/empty}
				</tbody>
			</table>
			{notempty name="list"}
			<div class="pagination text-center">{$list->render()}</div>
			{/notempty}
		</form>
	</div>
<script src="{$admin_assets_path}/js/common.js"></script>
</body>
</html>